home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / aset10.zip / ASETTST.BAT < prev    next >
DOS Batch File  |  1993-05-06  |  2KB  |  47 lines

  1. @echo off
  2.  
  3. rem     $Id: asettst.bat 1.1 1993/03/09 13:22:25 Ricki Exp $
  4. rem ------------------------------------------------------------------
  5. rem     Batch file to create a log file containing lots of examples
  6. rem     on how to use ASET. The log file name is ASETTST.OUT
  7. rem ------------------------------------------------------------------
  8. rem
  9. rem     $Log: asettst.bat $
  10. rem     Revision 1.1  1993/03/09  13:22:25  Ricki
  11. rem     Initial revision
  12. rem
  13.  
  14. rem     check if the designated output file already exists.
  15. rem     if yes, output a warning and stop
  16.  
  17. if exist ASETTST.OUT goto warnexis
  18.  
  19. rem     create the output file by calling ASET with 6 of the 7 test
  20. rem     files ASETx.TST (number 5 is omitted because interaction is
  21. rem     required here)
  22. rem
  23. rem     ASET is invoked with the following switches here:
  24. rem       -fASETx.TST   the input is read from ASETx.TST, not the command line
  25. rem       -n            don't actually modify the environment, just simulate
  26. rem       -r            repeat the assignment on standard output
  27.  
  28. for %%a in (1 2 3 4 6 7) do aset -fASET%%a.TST -n -r >> ASETTST.OUT
  29.  
  30. rem     if something failed, display a warning, otherwise exit
  31.  
  32. if errorlevel 1 goto warnfail
  33.  
  34. echo Everything worked fine. Look in ASETTST.OUT for the results of the test!
  35. goto end
  36.  
  37. :warnexis
  38. echo WARNING: The output file ASETTST.OUT does already exist! Remove it first!
  39. goto end
  40.  
  41. :warnfail
  42. echo WARNING: ASET failed for some reason (look at the above error message).
  43. echo          The test is aborted.
  44.  
  45. :end
  46.  
  47.